﻿<Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:VMDS_GUIClient_ViewModels_Management_VMs="clr-namespace:VMDS.GUIClient.ViewModels.Management.VMs" xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" x:Class="VMDS.GUIClient.Views.Management.VMs.AddVmStep1" 
      mc:Ignorable="d" 
      d:DesignHeight="454.5" d:DesignWidth="600"
	Title="AddVmStep1">
	<Page.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="/VMDS.GUIClient;component/Views/ResourceDictionary1.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Page.Resources>

	<Page.DataContext>
		<VMDS_GUIClient_ViewModels_Management_VMs:AddVmViewModel/>
	</Page.DataContext>

    <Grid>
    	<Rectangle Margin="5" Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10">
    		<Rectangle.Fill>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
    				<LinearGradientBrush.RelativeTransform>
    					<TransformGroup>
    						<ScaleTransform CenterY="0.5" CenterX="0.5"/>
    						<SkewTransform CenterY="0.5" CenterX="0.5"/>
    						<RotateTransform CenterY="0.5" CenterX="0.5"/>
    						<TranslateTransform/>
    					</TransformGroup>
    				</LinearGradientBrush.RelativeTransform>
    				<GradientStop Color="#FFEFECEC"/>
    				<GradientStop Offset="0.558"/>
    				<GradientStop Color="#FFEFECEC" Offset="1"/>
    				<GradientStop Offset="0.494"/>
    			</LinearGradientBrush>
    		</Rectangle.Fill>
    	</Rectangle>
        
    	<TextBlock Margin="39,96,0,0" TextWrapping="Wrap" Text="Название" Height="32" VerticalAlignment="Top" FontSize="18.667" HorizontalAlignment="Left" Width="88"/>
    	<TextBox Height="32" Margin="225,96,73,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="18.667" TextAlignment="Center" Text="{Binding Instance.VmName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
    	<TextBlock Margin="39,164,0,0" TextWrapping="Wrap" Text="Описание" Height="32" VerticalAlignment="Top" FontSize="18.667" HorizontalAlignment="Left" Width="88"/>
    	<TextBox Margin="225,164,73,0" TextWrapping="Wrap"  FontSize="18.667" Text="{Binding Instance.Description, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Height="59" VerticalAlignment="Top"/>
    	<Button Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,40,22.5" Grid.Row="0" Style="{DynamicResource DisabledButton}" VerticalAlignment="Bottom" Width="103" d:LayoutOverrides="Height" Command="{Binding Instance.GoToStep2, Mode=Default}">
    		<StackPanel Orientation="Horizontal">
    			<TextBlock Height="24" Margin="0,0,7,0" TextWrapping="Wrap" Text="Далее" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18.667"/>
    			<ed:BlockArrow Height="24" Margin="0" Orientation="Right" Stroke="#FFF8F3F3" StrokeThickness="0.5" Width="32" VerticalAlignment="Center">
    				<ed:BlockArrow.Fill>
    					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    						<GradientStop Color="#FF09991F" Offset="0.51"/>
    						<GradientStop Offset="1"/>
    						<GradientStop/>
    					</LinearGradientBrush>
    				</ed:BlockArrow.Fill>
    			</ed:BlockArrow>
    		</StackPanel>
    	</Button>
    	<TextBlock Margin="225,0,225,22.5" TextWrapping="Wrap" Text="Шаг 1/3" Height="32" VerticalAlignment="Bottom" TextAlignment="Center" FontSize="18.667"/>
    	<TextBlock Margin="0,28,0,0" TextWrapping="Wrap" Text="Введите название и описание виртуальной машины" Height="32" VerticalAlignment="Top" TextAlignment="Center" FontSize="21.333" HorizontalAlignment="Center"/>
    	<TextBlock Margin="0,0,0,78.5" TextWrapping="Wrap" Text="{Binding Instance.ValidMsg}" Height="32" VerticalAlignment="Bottom" TextAlignment="Center" FontSize="18.667" Foreground="#FF9F2828" HorizontalAlignment="Center"/>
    		<Grid Margin="0">
    			<TextBox x:Name="PathBox" Margin="225.317,249,166,0" TextWrapping="Wrap" Text="{Binding Instance.LocalPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" FontSize="13.333" Height="24.24" VerticalAlignment="Top"/>
    			<Button x:Name="BrowseButton" Content="Обзор..." Grid.Column="0" Margin="0,249,86,0" Grid.Row="0" Style="{DynamicResource Button}" Height="26.24" HorizontalAlignment="Right" Width="67" Click="BrowseButton_Click" VerticalAlignment="Top"/>
        
    		</Grid>
    		<TextBlock Margin="39,246.947,0,0" TextWrapping="Wrap" Text="Выберите файл" Height="30" VerticalAlignment="Top" FontSize="18.667" HorizontalAlignment="Left" Width="145"/>
    	
    </Grid>
</Page>
